package com.javademo.enumtest.enumentity;

public enum Size {

    SMALL("尺寸很小。"){
        @Override
        public String toString(){
            return "Your size is small!";
        }
    },
    MEDIUM("尺寸中等。"),
    LARGE("尺寸很大。"),
    EXTRALEGAL("尺寸超大。");

    private final String description;
    Size(String description) {
        this.description = description;
    }

    public String getS() {
        return description;
    }
}
